package com.flyco.modules.sms.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.flyco.modules.sms.entity.SmsAddbuyCondition;
import com.flyco.modules.sms.mapper.SmsAddbuyConditionMapper;
import com.flyco.modules.sms.service.ISmsAddbuyConditionService;
import com.flyco.modules.sms.vo.SmsAddbuyConditionPage;
import org.springframework.stereotype.Service;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @Description: 加价购条件
 * @Author: flyco
 * @Date:   2020-04-08
 * @Version: V1.0
 */
@Service
public class SmsAddbuyConditionServiceImpl extends ServiceImpl<SmsAddbuyConditionMapper, SmsAddbuyCondition> implements ISmsAddbuyConditionService {
	
	@Autowired
	private SmsAddbuyConditionMapper smsAddbuyConditionMapper;
	
	@Override
	public List<SmsAddbuyCondition> selectByMainId(Long mainId) {
		return smsAddbuyConditionMapper.selectByMainId(mainId);
	}


	@Override
	public Page<SmsAddbuyConditionPage> getAddbuyConditionProductPage(Page<SmsAddbuyConditionPage> page, Wrapper<SmsAddbuyConditionPage> wrapper) {
		return page.setRecords(smsAddbuyConditionMapper.getAddbuyConditionProductPage(page, wrapper));
	}
}
